﻿package com.saint {
	
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	
	/**
	 * ...
	 * @author wattonn
	 */
	
	
	public class MotionBounds extends Sprite {
		
		private var activeBox:		Shape;
		private var colour:			int = 0xFFFFFF;
		private var _width:			int = 0;
		
		public function MotionBounds() {
			activeBox = new Shape();
			addChild(activeBox);
		}
		
		public function update(motionArea:Rectangle):void {
			activeBox.graphics.clear();
			activeBox.graphics.lineStyle(_width, colour);
			
			activeBox.graphics.drawRect	(	motionArea.x,
											motionArea.y,
											motionArea.width,
											motionArea.height
										);
		}
		
	}

}